/**
 * Created by Toma on 2016/12/9.
 */
var arr = [1,2,3,4,6];
arr.desc = 'for number';

// 循环所有
for(var n in arr){
    console.log(arr[n]);
}
// 只会循环数组
for(var c of arr){
    if(c > 2) break;
    console.log(arr[c]);
}

for(var d of "for number"){
    console.log(d);
}